R89SDK

object R89SDK

This is the Entry Point To the SDK.

Functions

Link copied to clipboard
fun configureWebView(webView: WebView, userAgent: String, webViewClient: <Error class: unknown class>)

This is to configure the WebView with the settings we need for Ads to work properly we are turning doing the following:

Link copied to clipboard
fun getUserAgent(webView: WebView, siteName: String): String

This build a user agent that allow the SDK to track what ads are coming from the native web-app and which ones are coming from browsers.

Link copied to clipboard
fun initialize(appContext: Application, publisherId: String, appId: String, singleLine: Boolean, initializationEvents: <Error class: unknown class>? = null)

This is to use Auto Configuration where the SDK will fetch the configuration from the server, and apply those to itself. it still requires to use the RefineryAdFactory to place the ads. in the Views

Link copied to clipboard
fun initializeWithConfigBuilder(appContext: Application, publisherId: String, appId: String, configBuilder: <Error class: unknown class>, initializationEvents: <Error class: unknown class>? = null)

This is to use Manual Configuration you must pass a ConfigBuilder to use this method. Ensure you follow Guide to manual configuration to set all the required values in the ConfigBuilder.

Link copied to clipboard

This will check if we can load the url with consent if not it will wait until cmp data is available and then load the url.

Link copied to clipboard

Deletes all local data saved about the CMP, and next time the CMP is asked if it needs to show or not it will require showing since all consent that was previously given has been deleted

Link copied to clipboard
fun setDebug(getLocalFakeData: Boolean = true, forceCMP: Boolean = false, useProductionAuctionServer: Boolean = false)

if Set to true makes the SDK debug mode which means:

Link copied to clipboard
fun setLogLevel(level: <Error class: unknown class>)

Shows you different logs depending on what you indicate